home *** CD-ROM | disk | FTP | other *** search
- Path: news.ee.vill.edu!news
- From: sheridan@monet.vill.edu
- Newsgroups: comp.lang.c++
- Subject: Pure virtual destructors?
- Date: 16 Apr 1996 00:35:30 GMT
- Organization: Villanova University
- Message-ID: <4kuq0i$p6t@ftp.ee.vill.edu>
- NNTP-Posting-Host: 153.104.7.179
-
-
- The rule with destructors is that they are always overridden, right?
- That's a quote from VC4 docs, BTW. When I do this:
-
- class CBase {
- public:
- virtual ~CBase() = 0;
- ...};
-
- class CChild : public CBase {
- public:
- ~CChild();
- ...};
-
- and declare a body for ~CChild, I always get unresolved external on
- CBase::~CBase. I have seen this in several cases. My guess is it's not
- a compiler bug, so what am I missing?
-
- Thanks.
- Pete Sheridan
-
-